//
//  Student.m
//  Day4
//
//  Created by wenjim on 17/9/19.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import "Student.h"

@implementation Student

-(instancetype)initWithAge:(int)age name:(NSString *)name no:(int)no
{
    /*
    if (self = [super init]) {
        [self setAge:age];
        [self setName:name];
    }
     */
    
    if (self = [super initWithAge:age name:name]) {
        _no = no;
    }
    return self;
}

-(NSString *)description
{
    return [NSString stringWithFormat:@"age = %i, name = %@, no = %i",[self age],[self name],_no];
}

@end
